<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../layui-v2.6.8/layui/css/layui.css">
    <script src="../layui-v2.6.8/layui/layui.js"></script>
    <script src="../js/laydate.js"></script>
    <script src="../js/jquery-2.1.0.min.js"></script>
    <script src="../js/layer.js"></script>
</head>
<body>
    <div class="site-text" style="margin: 5% ;margin-left: -37px;" id="window"  target="test123">	
        <form class="layui-form" id="book" method="post" lay-filter="example">
          <div class="layui-form-item">
            <label class="layui-form-label">书名</label>
            <div class="layui-input-block">
              <input type="text" id="bookName" name="bookName" lay-verify="required" autocomplete="off" readonly class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">数量</label>
            <div class="layui-input-block">
              <input type="number" id="bookCounts" name="bookCounts" lay-verify="required" autocomplete="off" placeholder="修改数量" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">详情</label>
            <div class="layui-input-block">
              <input type="text" id="detail" name="detail" lay-verify="required" autocomplete="off" placeholder="详情" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            </div>
          </div>
        </form>
    </div>
    <script>
       //当打开窗体时执行全局放法
       window.onload = function() {
           
       }
    </script>
</body>
</html>
<!-- 
    window.location="http://127.0.0.1:5500/test_01/updata.html";
    $('#bookName').val(data.bookName),
    $('#bookCounts').val(data.bookCounts),
    $('#detail').val(data.detail)
 -->